#include "../../plugin/protocol/protocol_register.hh"
#include "../../protocol_files/example/generated_message_handler_register.hh"

#include "example_framework.hh"
#include "../../plugin/base/entity.hh"

#include "dummy.h"

#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable: 4100)
#endif // _MSC_VER

// TODO user defined message handler

ON_ENTITY_MSG_DISPATCH(DummyEntityReq, Dummy);

ON_MSG(DummyReq, pathID, siteType, msg) {
    static uint32_t count = 0;
    if (!(count % 1000)) {
        verblog << count << endlog;
    }
    DummyEntityAck ack;
    FrameworkRef.talkPath(pathID, ack);
    count++;
}

#ifdef _MSC_VER
#pragma warning(pop)
#endif
